/*    */ package client;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class BuddylistEntry
/*    */ {
/*    */   private final String name;
/*    */   private final int cid;
/*    */   private String group;
/*    */   private int channel;
/*    */   private boolean visible;
/*    */   
/*    */   public BuddylistEntry(String name, int characterId, String group, int channel, boolean visible) {
/* 19 */     this.name = name;
/* 20 */     this.cid = characterId;
/* 21 */     this.group = group;
/* 22 */     this.channel = channel;
/* 23 */     this.visible = visible;
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public int getChannel() {
/* 31 */     return this.channel;
/*    */   }
/*    */   
/*    */   public void setChannel(int channel) {
/* 35 */     this.channel = channel;
/*    */   }
/*    */   
/*    */   public boolean isOnline() {
/* 39 */     return (this.channel >= 0);
/*    */   }
/*    */   
/*    */   public void setOffline() {
/* 43 */     this.channel = -1;
/*    */   }
/*    */   
/*    */   public String getName() {
/* 47 */     return this.name;
/*    */   }
/*    */   
/*    */   public int getCharacterId() {
/* 51 */     return this.cid;
/*    */   }
/*    */   
/*    */   public boolean isVisible() {
/* 55 */     return this.visible;
/*    */   }
/*    */   
/*    */   public void setVisible(boolean visible) {
/* 59 */     this.visible = visible;
/*    */   }
/*    */   
/*    */   public String getGroup() {
/* 63 */     return this.group;
/*    */   }
/*    */   
/*    */   public void setGroup(String g) {
/* 67 */     this.group = g;
/*    */   }
/*    */ 
/*    */   
/*    */   public int hashCode() {
/* 72 */     int prime = 31;
/* 73 */     int result = 1;
/* 74 */     result = prime * result + this.cid;
/* 75 */     return result;
/*    */   }
/*    */ 
/*    */   
/*    */   public boolean equals(Object obj) {
/* 80 */     if (this == obj) {
/* 81 */       return true;
/*    */     }
/* 83 */     if (obj == null) {
/* 84 */       return false;
/*    */     }
/* 86 */     if (getClass() != obj.getClass()) {
/* 87 */       return false;
/*    */     }
/* 89 */     BuddylistEntry other = (BuddylistEntry)obj;
/* 90 */     return (this.cid == other.cid);
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\client\BuddylistEntry.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */